import React, { Component } from 'react'

// 引入数据源
import Mycontext from '../store'

export default class Cmp1 extends Component {
  render() {
    return (
      <Mycontext.Consumer>
        {
          value => <h3>{value.count}</h3>
        }
      </Mycontext.Consumer>
    )
  }
}
